package de.herzog.bbp.view;

import de.herzog.bbp.view.javafx.Validator;

public abstract class SpielBeanValidator {

	public static final Validator KLASSE_VALIDATOR = new Validator(Validator.CONVERT_UPPER, 6, //
			"[A-Z]?[A-Z0-9]{0,5}", //
			"[A-Z][A-Z0-9]{2,5}");

	public static final Validator DATE_VALIDATOR = new Validator(Validator.NO_CONVERSION, 10, //
			"[0-9]{0,2}\\.?[0-9]{0,2}\\.?[0-9]{0,4}", //
			"[0-9]{2}\\.[0-9]{2}\\.[0-9]{4}");

	public static final Validator ZEIT_VALIDATOR = new Validator(Validator.NO_CONVERSION, 5, //
			"[0-9]{0,2}:?[0-9]{0,2}", //
			"[0-9]{2}:[0-9]{2}");

	public static final Validator MANNSCHAFT_VALIDATOR = new Validator(Validator.CONVERT_UPPER, 10, //
			"[A-Z]{0,4}[1-9]?", //
			"[A-Z]{4}[1-9]");

	public static final Validator HALLE_VALIDATOR = new Validator(Validator.NO_CONVERSION, 1, //
			"[1-9]?", //
			"[1-9]");
}
